public class ThreadSafe{
    public static void main(String[] args) {
        Object objecta = new Object();
        Object objectb = new Object();
        Object objectc = new Object();
        Thread a = new Thread(()-> {
                try {
                    Thread.sleep(1200);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
                System.out.println("a");
        });
        Thread b = new Thread(()-> {
            try {
                Thread.sleep(1100);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("b");
        });
        Thread c = new Thread(()-> {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
            System.out.println("c");
        });
        a.start();
        b.start();
        c.start();
    }
}
